<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="${package}.mapper.${TableName}Mapper">
         
    <resultMap id="BaseResultMap" type="${package}.entity.${TableName}">
<#list  columns as field>
    <#if field.isPk=="1">
    <#else>
        <result column="${field.COLUMN_NAME}" property="${field.columnName}"/>
    </#if>
</#list>
    </resultMap>
         
    <sql id="Base_Column_List">
        <#list  columns as field>${field.COLUMN_NAME},</#list>
    </sql>
</mapper>
